package cn.forkway.dao;

import cn.forkway.domain.Student;
import cn.forkway.queryParam.stuQueryParam;
import cn.forkway.resultMap.stuMap;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: java-learn-mybatis
 * @className: StudentDao.java
 * @author: River Ray
 * @description: dao--->第一个dom哦
 * @createTime 2021年10月09日 16:33:00
 */
public interface StudentDao {
    public List<Student> selectStudent();
    public List<Student> selectStudentById(Integer id);
    public List<Student> selectStudentByNameAge(@Param("age") Integer age,@Param("name") String name);
    public List<Student> selectStudentByQueryParam(stuQueryParam param);
    public List<stuMap> selectStudentByQueryParamResultMap(stuQueryParam param);
    public int insertStudent(Student student);

}
